deltas: Make apply-offline only read the parts once
authorAlexander Larsson <alexl@redhat.com>
Thu, 15 Oct 2015 13:54:35 +0000 (15:54 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 10 Nov 2015 07:56:13 +0000 (08:56 +0100)
commiteaa678eaa4059a666a2c461fddfe7ecb498628e0
treed0e50bfc83645c90e738d02f75bc214530ed115d
parentee70ffbbcb683ca9872ecaadbc086cad69fc29c3
deltas: Make apply-offline only read the parts once

No need to read() the file for the checksum if we then directly mmap it.
Instead we just mmap it initially and checksum from that.
src/libostree/ostree-repo-static-delta-core.c